<template>
  <div class="main">
    <div class="card">
      <header>
        <img src=".././assets/header.jpg">
        <div class="txt">
          <p>滨海中关村园区企业服务提升及产业需求提升调查问卷</p>
          <span>尊敬的客户业主，您好！</span>
          <div></div>
          <p class="msg">首先感谢您在百忙之中抽出宝贵的时间来参加我们的问卷调查。
            我们是泰达产发集团北塘建发公司园区运营服务团队，
            为了更好的服务园区、发展园区，我们产发集团派出我们团队入驻园区为您服务。通过此份问卷，
            希望可以了解您到对于我们服务及产业方面的需求，我们也会尽快找出未来园区优化和产业发展的方向。
            希望您能给我们提出宝贵的意见，以便提供更加优质的服务。
            您也可以随时与我们企业服务负责人王佳联系：18630807599，真诚感谢您的配合！ </p>
        </div>
      </header>
      <div class="form">
        <el-form :model="form"
                 :rules="rules"
                 ref="form1"
                 label-width="30%"
                 class="demo-ruleForm">
          <!-- 表单开始 -->
          <el-form-item label="企业名称"
                        prop="qiyename">
            <el-input style="width:90%"
                      placeholder="请输入企业名称"
                      v-model="form.qiyename"></el-input>
          </el-form-item>
          <el-form-item label="入驻地址"
                        prop="address">
            <el-input style="width:90%"
                      placeholder="请输入入驻地址"
                      v-model="form.address"></el-input>
          </el-form-item>
          <el-form-item label="负责人"
                        prop="fzr">
            <el-input style="width:90%"
                      placeholder="请输入负责人"
                      v-model="form.fzr"></el-input>
          </el-form-item>
          <el-form-item label="联系电话"
                        prop="phone">
            <el-input style="width:90%"
                      placeholder="请输入联系电话"
                      v-model="form.phone"></el-input>
          </el-form-item>
          <el-form-item label="公司对接人"
                        prop="duijiepeople">
            <el-input style="width:90%"
                      placeholder="请输入公司对接人"
                      v-model="form.duijiepeople"></el-input>
          </el-form-item>
          <el-form-item label="公司对接人联系电话"
                        prop="duijiephone">
            <el-input style="width:90%"
                      placeholder="请输入联系电话"
                      v-model="form.duijiephone"></el-input>
          </el-form-item>
          <el-form-item label="产业类别"
                        prop="chanye">
            <el-select v-model="form.chanye"
                       style="width:90%"
                       placeholder="请选择产业类别">
              <el-option v-for="item in chanyeList"
                         :key="item.value"
                         :label="item.label"
                         :value="item.value">
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="经营范围"
                        prop="scope">
            <el-select v-model="form.scope"
                       style="width:90%"
                       multiple
                       placeholder="请选择经营范围">
              <el-option v-for="item in scopeList"
                         :key="item.value"
                         :label="item.label"
                         :value="item.value">
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="公司邮箱"
                        prop="mail">
            <el-input style="width:90%"
                      placeholder="请输入公司邮箱"
                      v-model="form.mail"></el-input>
          </el-form-item>
          <el-form-item label="入驻园区时间"
                        prop="ruzhuTime">
            <el-date-picker v-model="form.ruzhuTime"
                            type="date"
                            style="width:90%"
                            @change="handleChangeTime"
                            value-format="yyyy-MM-dd"
                            placeholder="选择日期">
            </el-date-picker>
          </el-form-item>
          <el-form-item label="填表日期"
                        prop="tianbiaoTime">
            <el-date-picker v-model="form.tianbiaoTime"
                            type="date"
                            style="width:90%"
                            value-format="yyyy-MM-dd"
                            placeholder="选择日期">
            </el-date-picker>
          </el-form-item>
          <el-form-item label="常驻人数"
                        prop="peopleNumber">
            <el-input-number style="width:90%"
                             v-model="form.peopleNumber"
                             :min="0">
            </el-input-number>
          </el-form-item>
          <!-- 后加 -->
          <el-form-item label="餐饮类型"
                        prop="canyin">
            <el-input style="width:90%"
                      placeholder="请输入法人代表"
                      v-model="form.canyin"></el-input>
          </el-form-item>
          <el-form-item label="独创性"
                        prop="duchuang">
            <el-select v-model="form.duchuang"
                       style="width:90%"
                       placeholder="请选择独创性">
              <el-option v-for="item in duchuangList"
                         :key="item.value"
                         :label="item.label"
                         :value="item.value">
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="统一社会信用代码"
                        prop="creditCode">
            <el-input style="width:90%"
                      placeholder="请输入统一社会信用代码"
                      v-model="form.creditCode"></el-input>
          </el-form-item>
          <el-form-item label="法人代表"
                        prop="faren">
            <el-input style="width:90%"
                      placeholder="请输入法人代表"
                      v-model="form.faren"></el-input>
          </el-form-item>
          <el-form-item label="注册资本"
                        prop="capital">
            <el-input style="width:90%"
                      placeholder="请输入注册资本"
                      v-model="form.capital"></el-input>
          </el-form-item>
          <el-form-item label="成立日期"
                        prop="establish">
            <el-date-picker v-model="form.establish"
                            type="date"
                            style="width:90%"
                            value-format="yyyy-MM-dd"
                            placeholder="选择日期">
            </el-date-picker>
          </el-form-item>
          <el-form-item label="营业期限"
                        prop="qixian">
            <el-input style="width:90%"
                      placeholder="请输入营业期限"
                      v-model="form.qixian"></el-input>
          </el-form-item>
          <el-form-item label="营收情况"
                        prop="yingshou">
            <el-input style="width:90%"
                      placeholder="请输入营收情况"
                      v-model="form.yingshou"></el-input>
          </el-form-item>
          <el-form-item label="净利润"
                        prop="profit">
            <el-input style="width:90%"
                      placeholder="请输入净利润"
                      v-model="form.profit"></el-input>
          </el-form-item>
          <el-form-item label="净资产"
                        prop="worth">
            <el-input style="width:90%"
                      placeholder="请输入净资产"
                      v-model="form.worth"></el-input>
          </el-form-item>
          <el-form-item label="税收情况"
                        prop="tax">
            <el-input style="width:90%"
                      placeholder="请输入税收情况"
                      v-model="form.tax"></el-input>
          </el-form-item>
          <el-form-item label="企业发展方向"
                        prop="progress">
            <el-input style="width:90%"
                      placeholder="请输入企业发展方向"
                      v-model="form.progress"></el-input>
          </el-form-item>
          <el-form-item label="申报高新企业类别"
                        prop="shenbao">
            <el-input style="width:90%"
                      placeholder="请输入申报高新企业类别"
                      v-model="form.shenbao"></el-input>
          </el-form-item>

          <!-- end -->
        </el-form>
        <el-form :model="form"
                 :rules="rules"
                 ref="form2"
                 style="margin-left:20px"
                 :label-position="labelPosition"
                 label-width="30%"
                 class="demo-ruleForm">
          <!-- 单选框 -->
          <el-form-item label="是否满足参观及展示功能"
                        prop="canguan">
            <el-radio-group style="margin-left:30px"
                            v-model="form.canguan">
              <el-radio :label="1">满足</el-radio>
              <el-radio :label="0">不满足</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区商业配套需求-便利店"
                        prop="bianlidian">
            <el-radio-group style="margin-left:30px"
                            v-model="form.bianlidian">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区商业配套需求-餐饮店"
                        prop="canyindian">
            <el-radio-group style="margin-left:30px"
                            v-model="form.canyindian">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区商业配套需求-咖啡店"
                        prop="kafeidian">
            <el-radio-group style="margin-left:30px"
                            v-model="form.kafeidian">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区商业配套需求-休闲运动场所"
                        prop="xiuxian">
            <el-radio-group style="margin-left:30px"
                            v-model="form.xiuxian">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区商业配套需求-园区食堂"
                        prop="shitang">
            <el-radio-group style="margin-left:30px"
                            v-model="form.shitang">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区商业配套需求-购物商场"
                        prop="market">
            <el-radio-group style="margin-left:30px"
                            v-model="form.market">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区服务满意度-园区物业服务"
                        prop="wuye">
            <el-radio-group style="margin-left:30px"
                            v-model="form.wuye">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区服务满意度-园区维修服务"
                        prop="weixiu">
            <el-radio-group style="margin-left:30px"
                            v-model="form.weixiu">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区服务满意度-金融服务"
                        prop="jinrong">
            <el-radio-group style="margin-left:30px"
                            v-model="form.jinrong">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区服务满意度-政策咨询类服务"
                        prop="zixun">
            <el-radio-group style="margin-left:30px"
                            v-model="form.zixun">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区服务满意度-业务办理服务"
                        prop="banli">
            <el-radio-group style="margin-left:30px"
                            v-model="form.banli">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区公共区域管理-外部人员往来管理"
                        prop="wailai">
            <el-radio-group style="margin-left:30px"
                            v-model="form.wailai">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区公共区域管理-秩序维护管理"
                        prop="zhixu">
            <el-radio-group style="margin-left:30px"
                            v-model="form.zhixu">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区公共区域管理-共享单车管理"
                        prop="danche">
            <el-radio-group style="margin-left:30px"
                            v-model="form.danche">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区公共区域管理-摆渡车运营形式"
                        prop="baiduche">
            <el-radio-group style="margin-left:30px"
                            v-model="form.baiduche">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区环境方面-保洁服务方面"
                        prop="baojie">
            <el-radio-group style="margin-left:30px"
                            v-model="form.baojie">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区环境方面-是否绿化小品增设"
                        prop="lvhua">
            <el-radio-group style="margin-left:30px"
                            v-model="form.lvhua">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区环境方面-夜景灯光"
                        prop="yejing">
            <el-radio-group style="margin-left:30px"
                            v-model="form.yejing">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区环境方面-是否增设休憩座椅"
                        prop="zuoyi">
            <el-radio-group style="margin-left:30px"
                            v-model="form.zuoyi">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区环境方面-门卫保安管理"
                        prop="baoan">
            <el-radio-group style="margin-left:30px"
                            v-model="form.baoan">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区环境方面-休息场所布置"
                        prop="xiuxi">
            <el-radio-group style="margin-left:30px"
                            v-model="form.xiuxi">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区活动-政策解读"
                        prop="zhengce">
            <el-radio-group style="margin-left:30px"
                            v-model="form.zhengce">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区活动-体育竞赛及团队拓展"
                        prop="tiyu">
            <el-radio-group style="margin-left:30px"
                            v-model="form.tiyu">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区活动-行业论坛"
                        prop="luntan">
            <el-radio-group style="margin-left:30px"
                            v-model="form.luntan">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="园区活动-园区活动-企业互动"
                        prop="qiyehudong">
            <el-radio-group style="margin-left:30px"
                            v-model="form.qiyehudong">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <!-- 输入框 -->
          <el-form-item label="便于工作提升，请阐述一般或不满意，需要增设服务项目的理由："
                        prop="liyou">
            <el-input style="width:90%"
                      type="textarea"
                      :rows="4"
                      placeholder="请输入"
                      v-model="form.liyou">
            </el-input>
          </el-form-item>
          <el-form-item label="目前最需要提升的地方："
                        prop="tisheng">
            <el-input style="width:90%"
                      type="textarea"
                      :rows="4"
                      placeholder="请输入"
                      v-model="form.tisheng">
            </el-input>
          </el-form-item>
          <el-form-item label="您目前对园区发展及管理有何其他方面的意见和建议？"
                        prop="jianyi">
            <el-input style="width:90%"
                      type="textarea"
                      :rows="4"
                      placeholder="请输入"
                      v-model="form.jianyi">
            </el-input>
          </el-form-item>
          <!-- 单选框 -->
          <el-form-item label="载体及产业服务需求-是否需要的配套的生产用房"
                        prop="fangzixuqiu">
            <el-radio-group style="margin-left:30px"
                            v-model="form.fangzi">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="载体及产业服务需求-是否有金融方面需求"
                        prop="jinrongxuqiu">
            <el-radio-group style="margin-left:30px"
                            v-model="form.jinrongxuqiu">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="载体及产业服务需求-是否有仓储需求"
                        prop="cangchuxuqiu">
            <el-radio-group style="margin-left:30px"
                            v-model="form.cangchuxuqiu">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="载体及产业服务需求-是否有公寓需求"
                        prop="gongyuxuqiu">
            <el-radio-group style="margin-left:30px"
                            v-model="form.gongyuxuqiu">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="载体及产业服务需求-是否有人才方面需求"
                        prop="rencaixuqiu">
            <el-radio-group style="margin-left:30px"
                            v-model="form.rencaixuqiu">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <el-form-item label="载体及产业服务需求-是否有销售产品、推广服务需求"
                        prop="tuiguangxuqiu">
            <el-radio-group style="margin-left:30px"
                            v-model="form.tuiguangxuqiu">
              <el-radio :label="1">需要</el-radio>
              <el-radio :label="0">不需要</el-radio>
            </el-radio-group>
          </el-form-item>
          <!-- 输入框 -->
          <el-form-item label="是否需要产业链需求，有何方向的需求？"
                        prop="chanyelian">
            <el-input style="width:90%"
                      type="textarea"
                      :rows="4"
                      placeholder="请输入"
                      v-model="form.chanyelian">
            </el-input>
          </el-form-item>
          <el-form-item label="现有载体是否有问题，有何建议？"
                        prop="zaiti">
            <el-input style="width:90%"
                      type="textarea"
                      :rows="4"
                      placeholder="请输入"
                      v-model="form.zaiti">
            </el-input>
          </el-form-item>
          <el-form-item label="对于周边产业链是否需要打通？"
                        prop="zhoubian">
            <el-input style="width:90%"
                      type="textarea"
                      :rows="4"
                      placeholder="请输入"
                      v-model="form.zhoubian">
            </el-input>
          </el-form-item>
          <el-form-item label="是否有其他其他需求？"
                        prop="qita">
            <el-input style="width:90%"
                      type="textarea"
                      :rows="4"
                      placeholder="请输入"
                      v-model="form.qita">
            </el-input>
          </el-form-item>
          <!-- end -->
        </el-form>
        <!-- 提交 -->
        <div class="sub">
          <el-button @click="submit"
                     style="width:50%"
                     :loading="loading"
                     type="primary">提交</el-button>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { addObj1 } from '@/api/faq1'

export default {
  data() {
    return {
      form: { peopleNumber: 0, scope: [] },
      labelPosition: 'top',
      loading: false,
      duchuangList: [
        { label: '技术', value: '技术' },
        { label: '行业', value: '行业' },
        { label: '模式领先', value: '模式领先' },
        { label: '其他的独特性', value: '其他的独特性' }
      ],
      canyinList: [
        { label: '汽车及装备制造', value: '汽车及装备制造' },
        { label: '电子信息', value: '电子信息' },
        { label: '石化与新材料', value: '石化与新材料' },
        { label: '医药大健康', value: '医药大健康' },
        { label: '现代服务业', value: '现代服务业' }
      ],
      chanyeList: [
        { label: '汽车及装备制造', value: '汽车及装备制造' },
        { label: '电子信息', value: '电子信息' },
        { label: '石化与新材料', value: '石化与新材料' },
        { label: '医药大健康', value: '医药大健康' },
        { label: '现代服务业', value: '现代服务业' }
      ],
      scopeList: [
        { label: '汽车研发', value: '汽车研发' },
        { label: '电子设备', value: '电子设备' },
        { label: '发动机', value: '发动机' },
        { label: '变速器', value: '变速器' },
        { label: '车身&底盘', value: '车身&底盘' },
        { label: '汽车制动集管路系统', value: '汽车制动集管路系统' },
        { label: '汽车电子', value: '汽车电子' },
        { label: '消费电子', value: '消费电子' },
        { label: '集成电路', value: '集成电路' },
        { label: '工业互联网', value: '工业互联网' },
        { label: '石化', value: '石化' },
        { label: '新材料', value: '新材料' },
        { label: '新能源', value: '新能源' },
        { label: '医药', value: '医药' },
        { label: '医疗器械', value: '医疗器械' },
        { label: '医药研发及外包服务', value: '医药研发及外包服务' },
        { label: '食品饮料', value: '食品饮料' },
        { label: '大健康', value: '大健康' },
        { label: '创新金融', value: '创新金融' },
        { label: '平台经济', value: '平台经济' },
        { label: '旅游业', value: '旅游业' },
        { label: '商贸物流', value: '商贸物流' },
        { label: '数字创艺', value: '数字创艺' }
      ],
      rules: {
        qiyename: [{ required: true, message: '请输入', trigger: 'blur' }],
        address: [{ required: true, message: '请输入', trigger: 'blur' }],
        fzr: [{ required: true, message: '请输入', trigger: 'blur' }],
        phone: [{ required: true, message: '请输入', trigger: 'blur' }],
        duijiepeople: [{ required: true, message: '请输入', trigger: 'blur' }],
        duijiephone: [{ required: true, message: '请输入', trigger: 'blur' }],
        chanye: [{ required: true, message: '请输入', trigger: 'change' }],
        scope: [{ required: true, message: '请输入', trigger: 'change' }],
        bianlidian: [{ required: true, message: '请选择', trigger: 'blur' }],
        canyindian: [{ required: true, message: '请选择', trigger: 'blur' }],
        kafeidian: [{ required: true, message: '请选择', trigger: 'blur' }],
        xiuxian: [{ required: true, message: '请选择', trigger: 'blur' }],
        shitang: [{ required: true, message: '请选择', trigger: 'blur' }],
        market: [{ required: true, message: '请选择', trigger: 'blur' }],
        wuye: [{ required: true, message: '请选择', trigger: 'blur' }],
        weixiu: [{ required: true, message: '请选择', trigger: 'blur' }],
        jinrong: [{ required: true, message: '请选择', trigger: 'blur' }],
        zixun: [{ required: true, message: '请选择', trigger: 'blur' }],
        banli: [{ required: true, message: '请选择', trigger: 'blur' }],
        wailai: [{ required: true, message: '请选择', trigger: 'blur' }],
        zhixu: [{ required: true, message: '请选择', trigger: 'blur' }],
        danche: [{ required: true, message: '请选择', trigger: 'blur' }],
        baiduche: [{ required: true, message: '请选择', trigger: 'blur' }],
        baojie: [{ required: true, message: '请选择', trigger: 'blur' }],
        lvhua: [{ required: true, message: '请选择', trigger: 'blur' }],
        yejing: [{ required: true, message: '请选择', trigger: 'blur' }],
        zuoyi: [{ required: true, message: '请选择', trigger: 'blur' }],
        baoan: [{ required: true, message: '请选择', trigger: 'blur' }],
        xiuxi: [{ required: true, message: '请选择', trigger: 'blur' }],
        zhengce: [{ required: true, message: '请选择', trigger: 'blur' }],
        tiyu: [{ required: true, message: '请选择', trigger: 'blur' }],
        luntan: [{ required: true, message: '请选择', trigger: 'blur' }],
        qiyehudong: [{ required: true, message: '请选择', trigger: 'blur' }],
        canguan: [{ required: true, message: '请选择', trigger: 'blur' }],
        canyin: [{ required: true, message: '请输入', trigger: 'blur' }],
        duchuang: [{ required: true, message: '请选择', trigger: 'blur' }],
        creditCode: [{ required: true, message: '请输入', trigger: 'blur' }],
        faren: [{ required: true, message: '请输入', trigger: 'blur' }],
        establish: [{ required: true, message: '请选择', trigger: 'blur' }],
        qixian: [{ required: true, message: '请输入', trigger: 'blur' }],
        yingshou: [{ required: true, message: '请输入', trigger: 'blur' }],
        profit: [{ required: true, message: '请输入', trigger: 'blur' }],
        worth: [{ required: true, message: '请输入', trigger: 'blur' }],
        tax: [{ required: true, message: '请输入', trigger: 'blur' }],
        progress: [{ required: true, message: '请输入', trigger: 'blur' }],
        shenbao: [{ required: true, message: '请输入', trigger: 'blur' }],
        capital: [{ required: true, message: '请输入', trigger: 'blur' }]
      }
    }
  },
  methods: {
    handleChangeTime(data) {
      console.log('data===', data)
    },
    handleChangeBianli(data) {
      console.log('data===', data)
    },
    submit() {
      console.log('提交===', this.form)
      let flag1 = false
      let flag2 = false
      // 1
      this.$refs.form1.validate(valid => {
        if (valid) {
          flag1 = true
        } else {
          console.log('error submit!!')
          return false
        }
      })
      // 2
      this.$refs.form2.validate(valid2 => {
        if (valid2) {
          flag2 = true
        } else {
          console.log('error submit!!')
          return false
        }
      })
      //
      if (flag1 && flag2) {
        // console.log('通过校验===')
        // this.$router.push({ path: '/success', query: { type: 'faq1' } })
        // addObj(this.form).then(res => {})
        console.log('提交===', this.form)

        console.log('通过校验===')
        let sub = this.form
        let subData = {
          ID: '',
          Enterprise_name: sub.qiyename,
          Settled_address: sub.address,
          Person_In_charge: sub.fzr,
          Contact_number: sub.phone,
          Company_counterpart: sub.duijiepeople,
          Company_counterpart_number: sub.duijiephone,
          Industry_category: sub.chanye,
          Nature_of_Business: sub.scope.join(','),
          Company_mailbox: sub.mail,
          InDate: sub.ruzhuTime,
          Date_of_filling: sub.tianbiaoTime,
          Resident_population: sub.peopleNumber,
          Convenience_Store: sub.bianlidian,
          Restaurant: sub.canyindian,
          cafe: sub.kafeidian,
          Leisure_and_sports: sub.xiuxian,
          Canteen_park: sub.shitang,
          Shopping_mall: sub.market,
          Park_Property_Services: sub.wuye,
          Park_maintenance_Service: sub.weixiu,
          financial_service: sub.jinrong,
          Policy_advisory_services: sub.zixun,
          Business_handling_services: sub.banli,
          External_personnel: sub.wailai,
          Order_maintenance: sub.zhixu,
          Shared_Bicycle_Management: sub.danche,
          Operation_car: sub.baiduche,
          Cleaning_Service: sub.baojie,
          Whether_greening: sub.lvhua,
          Night_scene_lighting: sub.yejing,
          Whether_seats: sub.zuoyi,
          Guard_security_management: sub.baoan,
          Layout_places: sub.xiuxi,
          Policy_interpretation: sub.zhengce,
          Sports_team_development: sub.tiyu,
          Industry_Forum: sub.luntan,
          Enterprise_Interaction: sub.qiyehudong,
          Reasons_services: sub.liyou,
          need_improved: sub.tisheng,
          development_Management: sub.jianyi,
          Whether_supporting_production: sub.fangzi,
          financial_demand: sub.jinrongxuqiu,
          storage_demand: sub.cangchuxuqiu,
          demand_apartments: sub.gongyuxuqiu,
          demand_talents: sub.rencaixuqiu,
          products_promotion_service: sub.tuiguangxuqiu,
          need_industrial: sub.chanyelian,
          problems_existing: sub.zaiti,
          need_through: sub.zhoubian,
          other_requirements: sub.qita,
          // 后加
          Type_required: sub.canyin,
          Originality: sub.duchuang,
          Unified_code: sub.creditCode,
          Legal_representative: sub.faren,
          registered_capital: sub.capital,
          Date_Incorporation: sub.establish,
          Business_term: sub.qixian,
          Revenue: sub.yingshou,
          Net_profit: sub.profit,
          Net_assets: sub.worth,
          Tax_situation: sub.tax,
          Enterprise_development_direction: sub.progress,
          Whethe_display: sub.canguan,
          Category_declared: sub.shenbao,

          createuser: 'admin',
          updateuser: 'admin',
          createdate: '',
          updatedate: ''
        }
        console.log('subData===', subData)
        this.loading = true
        addObj1(subData)
          .then(res => {
            console.log('res===', res)
            setTimeout(() => {
              this.loading = false
            }, 1000)
            this.$router.push({ path: '/success', query: { type: 'faq1' } })
          })
          .catch(err => {
            setTimeout(() => {
              this.loading = false
              this.$notify.error({
                title: '错误',
                message: '提交失败',
                duration: 2000
              })
            }, 1000)
          })
      } else {
        console.log('error submit!!')
        setTimeout(() => {
          this.loading = false
        }, 1000)
        return false
      }
    }
  }
}
</script>

<style scoped>
.main {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  display: block;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  overflow-y: scroll;
  box-sizing: border-box;
  /* border: 1px solid #0f0; */
}
header img {
  display: block;
  width: 100%;
}
.txt {
  padding: 10px;
}
.txt p {
  font-size: 18px;
  line-height: 28px;
  margin: 0;
  /* text-indent: 10px; */
}
.txt span {
  font-size: 14px;
}
.txt .msg {
  font-size: 14px;
  line-height: 28px;
  text-indent: 10px;
}
.sub {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 30px 0;
  /* margin: 0 auto; */
}
</style>